projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d0ff40
)
broadway: Don't bother memdup-ing
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Thu, 26 Sep 2013 18:09:35 +0000
(14:09 -0400)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Mon, 7 Oct 2013 20:19:01 +0000
(16:19 -0400)
If we're going to run off the end due to an invalid message,
we're going to run off the end. We'll protect this by doing
proper bounds checking in the future, but the malloc gives
us nothing for now.
gdk/broadway/broadway-server.c
patch
|
blob
|
history
diff --git
a/gdk/broadway/broadway-server.c
b/gdk/broadway/broadway-server.c
index 0c56610d5ffbeecc3628d5ba4fa10d343f414b24..b246f7152a3bf3c57e5c1fb7d93555422843b144 100644
(file)
--- a/
gdk/broadway/broadway-server.c
+++ b/
gdk/broadway/broadway-server.c
@@
-568,9
+568,7
@@
parse_input (BroadwayInput *input)
}
else
{
- char *terminated = g_memdup ((char *)data, payload_len);
- parse_input_message (input, terminated);
- g_free (terminated);
+ parse_input_message (input, data);
}
break;
case BROADWAY_WS_CNX_PING: